<div class="grid_18 manuoContent classic-setting">
    {{foreach $aSettings as $s}}
        {{if $s->Type=="string"}}
            <div class="pr4 pb4 {{$s->Key|escape:'html'}}">
                <div class="bdccc gadiend-white oauth OAucontent">
                    <div class="bdbccc lh24 pl20 pt2 pb2">
                        {{$s->Name|escape:'html'}}
                        <span onclick="S('{{$s->ID|escape:'html'}}')" title="Cập nhật" class="a fr lh24 pr20">✓ OK</span>
                    </div>
                    <div class=" pt4 pb4 pl4 pr4">
                        <div class="pr10">
                            <input id="txt{{$s->ID|escape:'html'}}" class="classic-input w100pc" 
                                   value="{{$s->Value|escape:'html'}}" 
                                   placeholder="trống"/>
                        </div>
                    </div>
                    <div class="clear"></div>
                </div>
                <div class="clear"></div>
            </div>
        {{elseif $s->Type=="text"}}
            <div class=" pr4 pb4 {{$s->Key|escape:'html'}}">
                <div class="bdccc gadiend-white oauth OAucontent">
                    <div class="bdbccc lh28 pl20 pt2 pb2">
                        {{$s->Name|escape:'html'}}
                        <span onclick="S('{{$s->ID|escape:'html'}}')" title="Cập nhật" class="a fr lh24 pr20">✓ OK</span>
                    </div>
                    <div class="pt4 pb4 pl4 pr4">
                        <div class="pr10">
                            <textarea id="txt{{$s->ID|escape:'html'}}" style="min-height: 16px" class="classic-input w100pc rsv">{{$s->Value|escape:'html'}}</textarea>
                        </div>
                    </div>
                    <div class="clear"></div>
                </div>
                <div class="clear"></div>
            </div>
        {{/if}}
    {{/foreach}}
</div>
{{foreach $aSettings as $s}}
    {{if $s->Type=="html"}}
        <div id="{{$s->Key|escape:'html'}}" class="grid_18 manuoContent {{$s->Key|escape:'html'}}">
            <div class=" pr4 pb4 {{$s->Key|escape:'html'}}">
                <div class=" oauth OAucontent">
                    <div class="bdccc gadiend-white lh24 pl20 pt2 pb2" style="border-bottom: none">
                        {{$s->Name|escape:'html'}}
                        <span onclick="S('{{$s->ID|escape:'html'}}',true)" title="Cập nhật" class="a fr lh24 pr20">✓ OK</span>
                    </div>
                    <div class="">
                        <textarea id="txt{{$s->ID|escape:'html'}}" 
                                  style="min-height: 16px" 
                                  class="classic-input w100pc rsv redactor-editor">{{$s->Value}}</textarea>

                    </div>
                    <div class="clear"></div>
                </div>
            </div>
        </div>
        <script type="text/javascript">
            addRedactorEditor($(".redactor-editor"));    
        </script>
    {{/if}}
{{/foreach}}

